﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Himp.Platform
{
    /// <summary>
    /// 标准域字典
    /// </summary>
    public class StdDomainDict : Entity<Guid>, IMultiTenant
    {
        /// <summary>
        /// 域编码
        /// </summary>
        public string DomainCodg { get; set; }

        /// <summary>
        /// 域名
        /// </summary>
        public string DomainName { get; set; }

        /// <summary>
        /// 逻辑数据类型
        /// </summary>
        public EnumLogicalDataType LogicalDataType { get; set; }

        /// <summary>
        /// 数据长度
        /// </summary>
        public int? DataLen { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int? DataScale { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        public string? Exp { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        public StdDomainDict()
        { 
        
        }

        public StdDomainDict(string domainCodg,string domainName
            , EnumLogicalDataType logicalDataType, int? dataLen ,int? dataScale, string exp="")
        {
            DomainCodg = domainCodg;
            DomainName = domainName;
            LogicalDataType = logicalDataType;
            DataLen = dataLen;
            DataScale = dataScale;
            Exp = exp;
        }
    }
}
